package manager
{
	import data.MonsterProp;
	import data.WaveProp;

	public class QueueManage
	{
		private static var instance:QueueManage;
		
		private var curList:Array;
		public function QueueManage()
		{
			if(instance)throw new Error("Singelon!");
			instance = this;
			curList=[];
		}
		
		public static function getInstance():QueueManage{
			return instance ||=new QueueManage();
		}
		
		public function getQueue():WaveProp{
			return ObjDataManage.getInstance().monsterQueue.length ? ObjDataManage.getInstance().monsterQueue.shift() : null;
		}
	}
}